<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageVIPGrade.aspx.cs" Inherits="admin_VipGrade_ManageVIPGrade" %>

<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员组管理</title>
<link rel="stylesheet" href="../skin/style.css" type="text/css" />
<script type="text/javascript" src="../../js/jquery.js"></script>
</head>


<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            <h3>
                操作提示</h3>
        </div>
        <div class="itemtitle_tect">
            <ul>
                <li>通过会员组管理，您可以进行编辑会员组名称、标志图征、权限设置、是否允许注册以及删除会员组等操作；</li>
            </ul>
        </div>
        <div class="clr">
        </div>
        <div class="partition">
            <div class="Option">
                <span><strong>快捷操作</strong></span> <span class="pl">
                    <asp:HyperLink ID="Add" runat="server" NavigateUrl="AddVipGrade.aspx">添加会员组</asp:HyperLink></span>
            </div>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:GridView ID="gdvVipGrade" runat="server" DataKeyNames="id" AutoGenerateColumns="False"
                CellPadding="0" GridLines="None" AllowPaging="False" OnPageIndexChanging="gdvVipGrade_PageIndexChanging" OnRowDeleting="gdvVipGrade_RowDeleting"
                CssClass="talbe_list" OnRowDataBound="gdvVipGrade_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th20 tou" />
                        <ItemStyle CssClass="nolet" />
                    </asp:TemplateField>
                    <asp:TemplateField Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblId" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="nolet" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="Name" HeaderText="等级名称">
                        <ItemStyle CssClass="left2" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="排序">
                        <ItemTemplate>
                            <asp:TextBox ID="TxtSort" runat="server" Text='<%# Eval("Sort") %>' Width="80px">
                            </asp:TextBox>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th180" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="等级标志">
                        <ItemTemplate>
                            <asp:Image ID="imgFlag" ImageUrl='<%# Eval("Flag")%>' runat="server" Width="80px"
                                Height="50px" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th180" />
                    </asp:TemplateField>
<%--                    <asp:TemplateField HeaderText="是否允许注册">
                        <ItemTemplate>
                            <%#DataBinder.Eval(Container.DataItem,"Register").ToString()=="True" ? "是" : "否"%>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="操作选项">
                        <ItemTemplate>
                            <a href='VipGradeRights.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID")%>'>权限管理</a> | <a href='EditVipGrade.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID")%>'>编辑</a> | <asp:LinkButton ID="lbtnUpdate" Text="删除" CommandName="delete" OnClientClick="return confirm('您确认删除该记录吗?');" runat="server"></asp:LinkButton></ItemTemplate>
                        <HeaderStyle CssClass="th180" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
            <div class="Paging">
			<p>
			<uc1:PageNo ID="PageNo1" runat="server" />
             </p>
            <input id="CheckBox2" name="CheckBox2" type="checkbox" onclick="SelectAll();" />
            <asp:Button ID="btnDelete" runat="server" Font-Size="9pt" Text="批量删除" OnClick="btnDelete_Click" CssClass="i_button" />
             <asp:Button ID="btnSort" runat="server" Font-Size="9pt" Text="排序" CssClass="i_button" OnClick="btnSort_Click" />
                
			  </div>
        </div>
    </form>
</body>
</html>
